package com.xingkeduo.dto.transter.orderserviec;

import com.xingkeduo.dto.OrderDetailResponseDto;
import com.xingkeduo.utils.ResponseUtils;
import lombok.Data;

@Data
public class OrderServiceType {

    private int error;
    private Object reason;
    private ServiceStatic content;

    public void covert(ResponseUtils<OrderDetailResponseDto> orderDetailResponseDto,ServiceStatic content) {
        this.error=orderDetailResponseDto.success()?0:1;
        this.reason=orderDetailResponseDto.success()?0:1;
        this.content=content;
    }

    public void error() {
        this.error=1;
        this.reason="订单不存在或服务器错误！";
        this.content=new ServiceStatic();
    }
}